import { globalShortcut } from 'electron';
import { IFeidaoAiDesktopApp } from '../../interfaces';

export default function regist(fd: IFeidaoAiDesktopApp, key: string, event: string) {
	globalShortcut.register(key, () => {
		fd.emit(event);
	});
}
